import {
  UPDATE_USER_INFO
} from '../constants/actionTypes'

const defaultState = {
  userinfo: {}
}

export const common = (state = defaultState, action) => {
  switch (action.type) {
    case UPDATE_USER_INFO:
      return { ...state, userinfo: action.userinfo };
    default:
      return state;
  }
}